package com.tinem.platform.web.gateway.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className WebSecurityConfig
 * @description TODO
 * @site 
 * @company 
 * @create 2020-07-02 19:59
 */
@Configuration
@SuppressWarnings("unchecked")
public class RibbonConfig {

    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
